<?php 
 
class SpinnerNumberField extends fpp_tdp_Model{

  function __construct($DataObjects){
    parent::__construct($DataObjects);
  }

  public function __toString(){
    $field = $this->field_name;
    $smax = @$this->args->max;
    $smin = @$this->args->min;
    $length = @$this->args->decimal_length;
    return form::input($this->field_name,$this->field_value,'class="SpinnerNumber" spinnermax="'.$smax.'" spinnermin="'.$smin.'" decimal_length="'.$length.'"');
  }

}

?>